package routes

import (
	"gitee.com/song-yao-shun/MQH/controller"
	"gitee.com/song-yao-shun/MQH/middleware"
	"github.com/gin-gonic/gin"
)

func TsRoutes(r *gin.Engine){
	resController := controller.NewTsController()

	res := r.Group("api/tss",middleware.AuthMiddleware())
	{
		res.POST("",resController.Create)
		res.PUT("/:id",resController.Update)
		res.GET("/:id",resController.Show)
		res.DELETE("/:id",resController.Delete)
		res.POST("/getall",resController.List)
	}
}

